#+TITLE: nmcli 
#+AUTHOR: Joshua Branson

* show available wifi networks
=nmcli dev wifi=

#+BEGIN_SRC sh :results output :exports both
nmcli dev wifi
#+END_SRC

#+RESULTS:
#+begin_example
IN-USE  BSSID              SSID                      MODE   CHAN  RATE        SIGNAL  BARS  SECURITY         
        54:83:3A:A5:C8:C0  ZyXELA5C8C0               Infra  11    195 Mbit/s  100     ****  WPA2             
        54:83:3A:A5:C8:C1  ZyXELA5C8C0_5G            Infra  40    540 Mbit/s  79      ***   WPA2             
        52:83:3A:A5:C8:C1  --                        Infra  40    540 Mbit/s  77      ***   WPA2             
        5C:E2:8C:8B:9A:38  124upstairs               Infra  11    195 Mbit/s  75      ***   WPA2             
        6E:8F:E0:C3:61:66  xfinitywifi               Infra  11    195 Mbit/s  70      ***   --               
        54:83:3A:8E:22:90  Homefront                 Infra  1     195 Mbit/s  64      ***   WPA2             
        7E:8F:E0:C3:61:66  --                        Infra  11    195 Mbit/s  64      ***   WPA1 WPA2        
        5C:8F:E0:C3:61:66  SterlingWifi              Infra  11    195 Mbit/s  62      ***   WPA2             
        8E:49:62:6D:75:70  --                        Infra  11    65 Mbit/s   62      ***   WPA2             
        AE:AE:19:C3:8C:CF  --                        Infra  11    65 Mbit/s   59      ***   WPA2             
        9E:8F:E0:C3:61:6B  --                        Infra  157   405 Mbit/s  57      ***   WPA1 WPA2 802.1X 
        AE:8F:E0:C3:61:6B  --                        Infra  157   405 Mbit/s  52      **    WPA1 WPA2        
        BC:99:11:4E:85:17  Homefront                 Infra  2     130 Mbit/s  50      **    WPA2             
        D6:7C:D1:92:88:C8  --                        Infra  6     195 Mbit/s  47      **    WPA1 WPA2 802.1X 
        DA:7C:D1:92:88:C8  --                        Infra  6     195 Mbit/s  45      **    --               
        5C:8F:E0:C3:61:6B  SterlingWifi              Infra  157   405 Mbit/s  44      **    WPA2             
        8E:8F:E0:C3:61:6B  XFINITY                   Infra  157   405 Mbit/s  44      **    WPA2 802.1X      
        6E:8F:E0:C3:61:6B  xfinitywifi               Infra  157   405 Mbit/s  44      **    --               
        7E:8F:E0:C3:61:6B  --                        Infra  157   405 Mbit/s  44      **    WPA1 WPA2        
        C0:7C:D1:92:88:C8  Not Another WiFi Network  Infra  6     195 Mbit/s  42      **    WPA2             
        76:63:9C:F7:81:67  --                        Infra  6     130 Mbit/s  39      **    WPA1 WPA2 802.1X 
        CA:7C:D1:92:88:C8  xfinitywifi               Infra  6     195 Mbit/s  37      **    --               
        6C:63:9C:F7:81:67  Jerrika Pirtle            Infra  6     130 Mbit/s  37      **    WPA2             
        6E:63:9C:F7:81:67  --                        Infra  6     130 Mbit/s  37      **    WPA2             
        B2:4F:B8:8B:99:F3  --                        Infra  11    195 Mbit/s  37      **    WPA1 WPA2 802.1X 
        1A:A0:97:AE:A8:4A  --                        Infra  11    195 Mbit/s  37      **    WPA1 WPA2        
        A6:99:11:4E:85:16  Homefront                 Infra  40    540 Mbit/s  37      **    WPA2             
        F8:A0:97:AE:A8:4A  TellMyWifiLoveHer         Infra  11    195 Mbit/s  35      **    WPA1 WPA2        
        70:4F:B8:8B:99:F3  PinkeyNEM5                Infra  11    195 Mbit/s  35      **    WPA2             
        72:4F:B8:8B:99:F3  --                        Infra  11    195 Mbit/s  35      **    WPA1 WPA2        
        C0:7C:D1:92:88:D0  Not Another WiFi Network  Infra  48    405 Mbit/s  35      **    WPA2             
        CA:7C:D1:92:88:D0  --                        Infra  48    405 Mbit/s  35      **    WPA1 WPA2        
        C6:7C:D1:92:88:D0  xfinitywifi               Infra  48    405 Mbit/s  35      **    --               
        A2:4F:B8:8B:99:F4  XFINITY                   Infra  149   405 Mbit/s  35      **    WPA2 802.1X      
        70:4F:B8:8B:99:F4  PinkeyNEM5                Infra  149   405 Mbit/s  34      **    WPA2             
        54:83:3A:8E:22:91  Homefront                 Infra  40    540 Mbit/s  32      **    WPA2             
        54:83:3A:81:DD:E8  201 s 6 th 2 2.4          Infra  11    195 Mbit/s  29      *     WPA2             
        CE:7C:D1:92:88:D0  XFINITY                   Infra  48    405 Mbit/s  29      *     WPA2 802.1X      
        6A:63:9C:F7:81:67  xfinitywifi               Infra  6     130 Mbit/s  27      *     --               
        D2:7C:D1:92:88:D0  --                        Infra  48    405 Mbit/s  27      *     WPA1 WPA2 802.1X 
        06:AA:A0:38:A1:78  --                        Infra  6     195 Mbit/s  24      *     --               
        02:AA:A0:38:A1:78  --                        Infra  6     195 Mbit/s  24      *     WPA1 WPA2 802.1X 
        EC:AA:A0:38:A1:78  SingletonPrime            Infra  6     195 Mbit/s  24      *     WPA2             
        6A:63:9C:F7:81:68  xfinitywifi               Infra  44    540 Mbit/s  24      *     --               
        82:4F:B8:8B:99:F4  xfinitywifi               Infra  149   405 Mbit/s  24      *     --               
        60:31:97:06:0F:20  ZyXEL060F20               Infra  1     195 Mbit/s  22      *     WPA2             
        6E:63:9C:F7:81:68  --                        Infra  44    540 Mbit/s  22      *     WPA2             
        92:4F:B8:8B:99:F4  --                        Infra  149   405 Mbit/s  22      *     WPA1 WPA2        
        42:70:09:37:9B:40  --                        Infra  1     270 Mbit/s  19      *     WPA2             
        54:83:3A:A5:C5:78  ZyXELA5C578               Infra  1     195 Mbit/s  19      *     WPA1 WPA2        
        B2:4F:B8:8B:99:F4  --                        Infra  149   405 Mbit/s  19      *     WPA1 WPA2 802.1X 
        40:70:09:37:9B:40  HOME-9B42                 Infra  1     270 Mbit/s  17      *     WPA1 WPA2        
#+end_example

* connecting and saving a wifi connection
  
  =nmcli dev wifi con "Cafe Hotspot 1" password caffeine name "My cafe"=
  creates a new connection named "My cafe" and then connects it to "Cafe Hotspot 1" SSID using password
  "caffeine". This is mainly useful when connecting to "Cafe Hotspot 1" for the first time. Next time, it is
  better to use nmcli con up id "My cafe" so that the existing connection profile can be used and no additional is
  created.
